package com.zhijian.medical.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 字典表
 *
 * @author Auto Generator
 * @date 2022-06-05 20:03:49
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "字典表")
public class Dictionary {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Long id;

    /**
     * 字典类型
     */
    @ApiModelProperty("字典类型")
    @NotBlank(message = "字典类型不能为空")
    private String type;

    /**
     * 字典值
     */
    @ApiModelProperty("字典值")
    @NotBlank(message = "字典值不能为空")
    private String value;

    /**
     * 字典标签
     */
    @ApiModelProperty("字典标签")
    private String label;

    /**
     * 父id
     */
    @ApiModelProperty("父id")
    private Long pId;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String note;

    /**
     * create_time
     */
    @ApiModelProperty("create_time")
    private Date createTime;

    /**
     * update_time
     */
    @ApiModelProperty("update_time")
    private Date updateTime;
}